home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / VBSamples / Direct3D / Dolphin / readme.txt < prev   
Text File  |  2001-10-10  |  3KB  |  59 lines

  1. //-----------------------------------------------------------------------------
  2. // Name: Dolphin Direct3D Sample
  3. // 
  4. // Copyright (C) 1999-2001 Microsoft Corporation. All rights reserved.
  5. //-----------------------------------------------------------------------------
  6.  
  7.  
  8. Description
  9. ===========
  10.    The Dolphin sample shows an underwater scene of a dolphin swimming, with
  11.    caustic effects on the dolphin and seafloor. The dolphin is animated using
  12.    a technique called "tweening". The underwater effect simply uses fog, and
  13.    the water caustics use an animated set of textures.
  14.  
  15.  
  16. Path
  17. ====
  18.    Source:     DXSDK\Samples\Multimedia\VBSamples\Direct3D\Dolphin
  19.    Executable: DXSDK\Samples\Multimedia\VBSamples\Direct3D\Bin
  20.  
  21.  
  22. User's Guide
  23. ============
  24.    The following keys are implemented. The dropdown menus can be used for the
  25.    same controls.
  26.  
  27.       <F2>        Prompts user to select a new rendering device or display mode
  28.       <Alt+Enter> Toggles between fullscreen and windowed modes
  29.       <Esc>       Exits the app.
  30.  
  31.  
  32. Programming Notes
  33. =================
  34.    Several things are happening in this sample. First of all is the use of 
  35.    fog to give an underwater effect. The fog parameters are set up in the 
  36.    InitDeviceObjects() function.
  37.  
  38.    The water caustics are achieved by animating a set of 32 different textures
  39.    (caust00.tga through caust31.tga). The caustics can be blending into the
  40.    scene using multitexturing or multi-pass blending techniques. It is
  41.    straightforward except for one tricky situation. Since the bottom of the 
  42.    dolphin should not have caustic effects, a separate pass is done where 
  43.    ambient light is removed and the dolphin is lit from above, and then
  44.    blending the diffuse color with the caustic texture.
  45.  
  46.    The dolphin is animated using a technique called "tweening", in which the
  47.    dolphin model's vertices are linearly blending from multiple other sets of
  48.    vertices. The source models for these other sets of vertices is loaded
  49.    from dolphin_group.x, which consists of the dolphin model in three
  50.    different positions. Each frame, a destination mesh is generated by 
  51.    blending some combination of the positions and normals from these meshes
  52.    together.
  53.  
  54.    This sample makes use of common DirectX code (consisting of helper functions,
  55.    etc.) that is shared with other samples on the DirectX SDK. All common
  56.    classes and modules can be found in the following directory:
  57.       DXSDK\Samples\Multimedia\VBSamples\Common
  58.  
  59.